package com.comm.base;

import com.comm.BeanManager;
import com.comm.ui.main.Mainconstant;

import rx.subscriptions.CompositeSubscription;

/**
 * Created by Administrator on 2017/10/8.
 */

abstract public class BaseControllerImpl<V extends BaseView> implements BaseController {

    protected V view;
    protected BeanManager beanManager;
    protected CompositeSubscription mCompositeSubscription = new CompositeSubscription();

    public BaseControllerImpl(V v) {
        view = v;
        view.setController(this);
        init();
    }

    protected void init() {
        beanManager = BeanManager.newInstance(view.getImContext());
    }
}
